﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
          for (int i=1;i<10;i++)
            {
                for (int j=1;j<=i;j++)
                {
                    Console.Write("{0} X {1} = {2} \t",i,j,i*j);
                }
                Console.Write("\n");
            }




            //菱形

          /*for (int o = 1; o <= 3;o++)
            {
                for (int e = 1; e <= 3 - o; e++)
                {
                    Console.Write(" ");
                }
                for (int k = 1; k <= o* 2 - 1; k++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();

                for (int o = 2; o >= 2; o--)
                {
                    for (int e = 1; e <= 3 - o; o++)
                    {
                        Console.Write(" ");
                    }
                    for (int k = 1; k <=2 * o - 1; k++)
                    {
                        Console.Write("*");
                    }
                    Console.WriteLine();
                }*/
        }

    }
}
